#ifndef _ONENET_HTTP_H
#define _ONENET_HTTP_H

#define SWITCH_DEVICE_ID         "650910227"//开关设备的device_id
#define API_KEY            "UHcaDXdTbfergaoddyvmMJXfkvk="

extern char * onenet_server_ip;
extern int onenet_server_port;
extern char RXbuff[2048];      //接收数据缓冲区
extern char TXbuff[2048];      //发送数据缓冲区

//@depress 已废弃
//void OneNet_GET(char *device_id);
//@depress 已废弃
//void OneNet_POST(char *device_id);
	
//onenet接收报文解析
void onenet_recive_msg_paser(char * resp);

//服务器返回的数据在esp8266的串口寄存器，请自行编写中断接收，推荐用中断+操作系统的任务来处理数据
void esp8266_onenet_doGet(char *device_id, char *resp, int timeout);

#endif
